/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ergasia3h;

/**
 *
 * @author user
 */

//H κλάση Εγγεγραμμένος Χρήστης κληρονομεί την κλάση Χρήστης      
public class EggegrammenosXristis extends Xristis{
    
    // Δήλωση ιδιοτητων
    private String onoma;
    private String eponymo;
    private String address;
    private String phone;
    private String email;
    
    /**
     * 
     * @param username
     * @param password
     */
    public EggegrammenosXristis(String username, String password){
    super(username, password);
    }

    //Κατασκευαστής
    public EggegrammenosXristis(String onoma,String eponymo,String address, 
            String phone, String email,String username, String password){
        super(username,password);
        this.onoma=onoma;
        this.eponymo=eponymo;
        this.address=address;
        this.phone=phone;
        this.email=email;
    }

//Μέθοδοι get & set για να πάρουμε ή να αλλάξουμε τιμές στις ιδιότητες    
public String getOnoma(){
return onoma;
}
public String getEponymo(){
return eponymo;
}
public String getAddress(){
return address;
}
public String getPhone(){
    return phone;
}
public String getEmail(){
return email;    
}
public void setOnoma(String onoma){
    this.onoma=onoma;
}
public void setEponymo(String eponymo){
    this.eponymo=eponymo;
}
public void setAddress(String address){
    this.address=address;
}
public void setPhone(String phone){
    this.phone=phone;
}
public void setEmail(String email){
    this.email=email;
}

}

    
    
